﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>充值详情-微街秀管理后台</title>
<link href="../../Client/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="../css/admin.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="../js/function.js" type="text/javascript"></script>
<script src="../js/base.js" type="text/javascript"></script>
<script src="../js/dialog.js" type="text/javascript"></script>
<script src="../js/jquery-form.js" type="text/javascript"></script>
<script src="../js/ajax-data.js" type="text/javascript"></script>
</head>
<body>
<div class="navigation"><a href="javascript:history.go(-1);" class="back">后退</a>首页 &gt; 订单管理 &gt; 充值详情</div>
<div id="contentTab">
    <ul class="tab_nav">
        <li class="selected"><a onclick="tabs('#contentTab',0);" href="javascript:;">充值详情</a></li>     
    </ul>

    <div class="tab_con" style="display:block;">
        <table class="form_table">
            <col width="150px"><col>
            <tbody>
             <tr>
                <th>微街秀ID：</th>
                <td>
                   <span id="id"></span>
                </td>
            </tr>
              <tr>
                <th>订单号：</th>
                <td><span id="orderid"></span></td>
            </tr>
            <tr>
                <th>广告标题：</th>
                <td><span id="article_id"></span></td>
            </tr>
            <tr>
                <th>广告单价：</th>
                <td><span id="unit_price"></span></td>
            </tr>
            <tr>
                <th>广告数量：</th>
                <td><span id="number"></span></td>
            </tr>
            <tr>
                <th>订单总额：</th>
                <td><span id="total_price"></span></td>
            </tr>
            <tr>
                <th>支付金额：</th>
                <td><span id="pay_price"></span></td>
            </tr>
            <tr>
                <th>支付方式：</th>
                <td><span id="platform"></span></td>
            </tr>
            <tr>
                <th>交易状态：</th>
                <td style="font-size:14px;"><span id="state"></span></td>
            </tr>
            <tr>
                <th>交易时间：</th>
                <td><span id="date"></span></td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="foot_btn_box" style=" text-align:left; margin-left:150px;">
        <input type="button" class="btnSubmit" value="返回列表" style="margin-left:20px;" onclick="javascript:document.location.href='list.html'" />
    </div>
</div>
<script>
    $(function () {
        islogin();
        GetList(1);
    })

    function GetList(page) {
        if (getQueryString("id") == null) {
            Alert("参数无效")
            return;
        }
        var param = "id=" + getQueryString("id");
        AjaxStart("../ajax/fc_order.ashx?get", param, function (data) {
            if (data.code != 0)
                alert(data.msg);
            else {
                var item = data.item;
                $("#id").html(item["id"]);
                if (item["title"] != null)
                    $("#article_id").html("<a href='" + item["url"] + "' target=\"_blank\">" + item["title"] + "</a>");
                $("#orderid").html(item["orderid"]);
                $("#unit_price").html(item["unit_price"]);
                $("#number").html(item["number"]);
                $("#total_price").html(item["total_price"] + "元");
                $("#pay_price").html(item["pay_price"] + "元");
                $("#date").html(item["date"].toString().replace("T", " ").substring(0, 19));
                if (item["platform"] == "1")
                    $("#platform").html("微信支付");
                else if (item["platform"] == "2")
                    $("#platform").html("支付宝支付");

                if (item["state"] == 1)
                    $("#state").html("成功");
                else if (item["state"] == 0)
                    $("#state").html("<span style='color:red'>失败</span>");
            }
        });
    }

</script>
</body>
</html>
